//
//  ShopCartModel.m
//  meidianjie
//
//  Created by HYS on 16/1/4.
//  Copyright © 2016年 HYS. All rights reserved.
//

#import "ShopCartModel.h"

@implementation ShopCartModel

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeInteger:self.goods_id forKey:@"goods_id"];
    [aCoder encodeInteger:self.cart_id forKey:@"cart_id"];
    [aCoder encodeInteger:self.goods_num forKey:@"goods_num"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.goods_id = [aDecoder decodeIntegerForKey:@"goods_id"];
        self.cart_id = [aDecoder decodeIntegerForKey:@"cart_id"];
        self.goods_num = [aDecoder decodeIntegerForKey:@"goods_num"];
    }
    
    return self;
}


@end
